package com.example.mall.service.impl;

import com.example.mall.mapper.SpOrderGoodsMapper;
import com.example.mall.pojo.SpOrderGoods;
import com.example.mall.service.SpOrderGoodsService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@AllArgsConstructor
public class SpOrderGoodsServiceImpl implements SpOrderGoodsService {
    SpOrderGoodsMapper spOrderGoodsMapper;


    @Override
    public List<SpOrderGoods> getSpOrderGoodsById(Integer order_id) {
        List<SpOrderGoods> spOrderGoods=spOrderGoodsMapper.selectSpOrderGoodsByOrderId(order_id);
        return spOrderGoods;
    }
}
